#!/usr/bin/python
from twisted.web import server
from twisted.application import service, internet
from app.pspysrvr import PspySite
from pspy.gear.cfg import pspyConf

##
# add working dir to Python Path
import sys
sys.path.append('./')

##
# build the server and run it
application = service.Application(pspyConf.projectName)
site = server.Site(PspySite())
server = internet.TCPServer(pspyConf.serverPort,site)

server.setServiceParent(application)
